package com.sobot.finance.poc.web.cons;


import com.google.common.collect.Maps;

import java.util.Map;

/**
 * @author baiyp
 */
public class SysConst {

    public static final String TOKEN_KEY_TMP = "token_key";

    public static final String TOKEN_VAL_TMP = "{tokenType} {accessToken}";

    /**
     * string -> batchNo/batchUid-taskId(首催)
     */
    public static final String SC_BATCH_NO_TASK_ID_KEY_TMP = "sc_batch_no_task_id_key_{}";

    /**
     * string -> batchNo/batchUid-taskId(复催)
     */
    public static final String FC_BATCH_NO_TASK_ID_KEY_TMP = "fc_batch_no_task_id_key_{}";

    /**
     * string -> batchNo/batchUid-sceneCode
     */
    public static final String BATCH_NO_SCENE_CODE_KEY_TMP = "batch_no_scene_code_key_{}";

    /**
     * string -> batchNo/batchUid-batchName
     */
    public static final String BATCH_NO_ID_BATCH_NAME_KEY_TMP = "batch_no_batch_name_key_{}";

    /**
     * string -> taskId-batchNo/batchUid
     */
    public static final String TASK_ID_BATCH_NO_KEY_TMP = "task_id_batch_no_key_{}";

    /**
     * hash -> batchNo/batchUid-telNo-outId
     */
    public static final String BATCH_NO_TEL_NO_KEY_TMP = "batch_no_tel_no_key_{}";


    /**
     * hash -> batchNo/batchUid-telNo-msg
     */
    public static final String BATCH_NO_TEL_NO_MSG_KEY_TMP = "batch_no_tel_no_msg_key_{}";

    public static final Map<Integer, String> STATUS_MAP = Maps.newHashMap();

    /**
     * 客户姓名
     */
    public static final String NAME_VARIABLE_NAME = "custName";

    /**
     * 逾期天数
     */
    public static final String DAYS_VARIABLE_NAME = "overDays";

    /**
     * 默认逾期天数
     */
    public static final String DAYS_DEFAULT_VALUE = "1";

    /**
     * 逾期金额
     */
    public static final String AMT_VARIABLE_NAME = "overAmt";

    /**
     * 首催
     */
    public static final String SC = "首催";

    /**
     * 复催
     */
    public static final String FC = "复催";

    static {
        STATUS_MAP.put(0, "未拨打");
        STATUS_MAP.put(1, "拨打中");
        STATUS_MAP.put(2, "已接通");
        STATUS_MAP.put(3, "⽆⼈接听");
        STATUS_MAP.put(4, "关机");
        STATUS_MAP.put(5, "停号");
        STATUS_MAP.put(6, "空号");
        STATUS_MAP.put(7, "拒接");
        STATUS_MAP.put(9, "⽤户正忙");
    }

    /**
     * @author baiyp
     */
    public enum Over {
        /**
         * 结束
         */
        YES("1"),
        /**
         * 未结束
         */
        NO("0");

        public String val;

        Over(String val) {
            this.val = val;
        }
    }

    /**
     * @author baiyp
     */
    public enum Opt {
        /**
         * 启动
         */
        START("start"),
        /**
         * 取消
         */
        CANCEL("cancel"),
        /**
         * 暂停
         */
        STOP("stop");

        public String val;

        Opt(String val) {
            this.val = val;
        }
    }
}
